package com.deram.ctin.serv.business.api;

import com.deram.ctin.common.bean.PageResult;
import com.deram.ctin.serv.business.entity.BaseUpdateInfo;
import com.deram.ctin.serv.business.entity.BusinessJudgement;
import com.deram.ctin.serv.business.entity.BusinessSoftware;
import com.deram.ctin.serv.business.filter.BusinessJudgementFilter;
import com.deram.ctin.serv.business.filter.BusinessSoftwareFilter;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author: jtt
 * @Description:
 * @Date: 2017/9/13 15:45
 * @version: V1.0
 */
@FeignClient("serv-business")
@RequestMapping("/businessSoftwareApi")
public interface BusinessSoftwareApi {

    @PostMapping("/list")
    List<BusinessSoftware> list(@RequestBody BusinessSoftwareFilter filter);

    @PostMapping("/save")
    BusinessSoftware save(@RequestBody BusinessSoftware param);

    @PostMapping("/delete")
    void delete(@RequestParam("id") Long id);

    @PostMapping("/saveList")
    void saveList(@RequestBody BaseUpdateInfo<BusinessSoftware> updateInfo);

    @PostMapping("/search")
    PageResult<BusinessSoftware> search(@RequestBody BusinessSoftwareFilter filter, @RequestParam("pageNo") Integer pageNo, @RequestParam("pageSize") Integer pageSize);
}
